package scenic.toolkit;

import scenic.toolkit.db.NodeArray;
import scenic.toolkit.db.Property;

public class TextModel extends scenic.toolkit.ComponentModel {
	private static Property<NodeArray<ParagraphModel>> paragraphsProperty = 
		new Property<NodeArray<ParagraphModel>>("paragraphs");

	public TextModel() {
		setParagraphs(new NodeArray<ParagraphModel>(null));
	}

	public TextView createComponent() {
		return new TextView(this);
	}
	
	public NodeArray<ParagraphModel> getParagraphs() {
		return paragraphsProperty.get(this);
	}

	public void setParagraphs(NodeArray<ParagraphModel> paragraphs) {
		paragraphsProperty.set(this, paragraphs);
	}

}
